import React, { useEffect } from 'react'
import { useDispatch, useSelector } from 'umi'
import Tables from '../../components/offtables'

function Hire(props:any) {
  const dispatch = useDispatch()
  useEffect(()=>{
    list.length ? '' : dispatch({type:'commerce/getshopshire'})
  },[])
  const list=useSelector((state:any)=>{
    return state.commerce.shopshire
  })
  return (
    <div>
      <Tables fatherType={'shopshire'} list={list}></Tables>

    </div>
  )
}

export default Hire